Fix bug in change_format.py so that the outfile name is changed.
Update documentation and clean up output.