implemented adding new event

Adding new event has been impltmented. There is still no synchronization
with other devices though.