Implemented an autoloader, separated functions from class files
Fix unit tests