Well, look, with "UltraFileSearch" you can solve your question about looking up a previously used routine.
As for your second question about automatically generating documentation, that is much more difficult. Maybe you could achieve something with jSoup library for more or less standard routines and declarations, but yes, if you have not used a standard way of documentation, it becomes very difficult.