Add docs on writing event handlers to README