Updated findFunctions to use the code from tools.py
Added a Class class to tools.py, to have functions per class
Fixed deep indentation