Added some JavaDoc comments.