solved header selection problem with index-of+exists
fixed namespace brackets
removed extra endline in generated file
fixed endlines
Added Primary Key comment to code. Indetions fixed
fixed namespace printing