Merge pull request #4 from mdrewt/chat

Chat
Refactored toward a more OO style.