Moved classes to separate files

Updated .gitignore to ignore the compiled python