Feature/window resizing

fixes #17