Fix readme and start adding better event handling code