Added some comments to the messages controller