Added WindowManager class

& Generic checkable object
+ some bugfixes