Improved code style + phpdocs
Added debian implementation