Fix bugs
Added tests.
Generator abstracts instead of enums for enums in .proto
Delete unused import.