Added debug code at exit,
Continued particle engine,
Added GET_SHARED_POINTER() macro