moved event classes, set up datastore save function