Added events to event loop, fixed TODO tags and window.h started