Debugged cycle_by_cycle to handle cycles with no beginning; make_format was debugged with preallocation; tsdata was restored.