Removed legacy code and unused functionality, added experimental SDL usage