Add messages functionality

Added ability to read/send messages and cleaned up a few small things. :smiley: