Improved FunctionFinder

Now ensures return type is valid, and that the function has argument
"void". Also fixed some issues with preprocessor directives on the first
line.