Drupal coding standars

Changes:
* braces in the same line
* Doc blocks
* Test to generator classes
* Typos