Fixed event initiatian and position update. Made all Lua code run in proper protected mode, so you cannot chrash the code anymore, added agent to test the sharedNumber functions