Added basic Event methods and eventToJSON