+ minor style improvement
+ temporarily added a message type dictionary in msgtype.py