Events

Some event stuff working away. Also this should close off #3 .