More documentation, added runningStats class and extended capabilities of FSM