Added JavaDoc comments
Merge method