Added jsDoc and phpDoc comments