moved a class outside main file, added .gitignore files