slightly modified eventhandler. eventhandler test done.
changes in algorithm2Dtest -not finished. eventhandlertest now fully working