Complete Implemention of Stop

Updated CommandProcessor to have static variable hasInterrupted to
listen to stop button press when the loop is forever.
Implement time interval for processing each commands