Updated advancedParserClass

Added checkFunctionImplementation which will check whether the function
implementation is logical and error-free.

Also added three private variables to count the number of assignment
statements, functions and tokens parsed.