Updating files to work with future Haskell. Have server mode working.
Updated files
Cleaned up and documented Python code.