window now actually exits when it exits...
fixed buffers, added resizing