Made the CLI tool output errors
Added gradle tasks to generate classes and tests