Redesigned platform code
Switched to nullptr
Added window manager
Removed unused delete