Added 'send message' functionality. Cleaned up code and comments. Incorporated logic driven by logged in user information.