split demmand progress and fftf main files into separate versions.

TODO: remove redundancy, and add a command line parameter to specify row format.