Fixed #7: Added JavaDoc comments.