added --rev to --all_fold option in gather.py