A few optimizations. Added a possibility to start and stop threads (KeStartThread, KeExitThread)