thread exit functionality added; exit on ENTER added; command generation added
speed control aded