Fixed phpdocs, code style and etc