Refactored server read event. read now just checks if the code is in a dict of the form {code : handling_function}. Also changed 'Message Code Str' to 'Int'.
Fixed some typos in the client.