Feature/wndmanagement

Fixes #8 #11