improve phpdoc.
changes from Drupal.org #667098
put package in new namespace.
code style.
Merge branch 'release/1.2.0'