renamed SchedulerThread to SchedThread
implemented GarbageThread
runs garbage thread
implemented Terminate() using garbage thread