Fixed coding style in generated form type class

* Fixed indentation/line breaks in generated form type class
* Added docblocks with @param/@return annotations