Fixed bugs in messageinterpreter and messagehandler. Also am principally
done with client.