-added the memory leak detector
-added function for proper launch and exit of SDL modules