Improving the createEvent method and adding some defaults and docblock
tidying up