improve phpdoc and code formatting
See #11