Added simple control - s = start running , q = quit. Writes to a ROOT file, but output not yet checked