New events added
Window pool implemented
Undef main moved to window files