Update a code style, add PHPDoc comments, remove gii generators.