Added API to readme. Moved some functions, done work on Events.