Client added

Added client and made sure that function act() works accordingly; Had to
fix some things, especially in eventhandler.execute