Cleaned up code.
Message sending from magServer now works. Message Passing protocols still needs implementation.