Fixed #14 Window resizing. Worked on #5.