max version now uses an NSView subclass, uses almost no cpu
moved all code to nsview, window can now be resized to any size. resolution independence ftw!