Refactored CodeGenerator
Implemented generating files from directory
Improved EntityTemplate