added missing phpdocs and fixed codestyle