Created initial working version of eventlib.