fixed getStateHistory, translation, added todo