adding proper PHPDoc comments
adjust code format