Refactored Comment controller/model and fixed some bugs in IdeaController