Made addComment() method more efficient