Fixed bugs on project.cpp

I fixed the bugs found on project.cpp. The problem with
getFunctionDeclarations is that it is only found in the class
advancedparserclasses. We cannot refer to a class object of Clippy so we
must find another way around it.