Added a initialization to CommentController and got rid of redundant functions. Other minor changes as well