minor fixes

moved enum to header file, aligned spaces in some functions, added some comments about what should be fixed
some new test (classes/methods existance, what should happen when file doesn't exist)