Fix serveral small issues refs #119
Code style + phpdoc