Added client side processing of messages and some fine tuning of server.py