Added more functions

Added more functions to message and comment controllers.