fix codestyle and phpdoc, see #4