Taken the chatmessagecontents out to its own file
Removed unused imports