Fixed naming of _id columns
Improved format of generated code
Added a simple unit test