updated the clean_pair-RE to make it deal better files with a variety of formatting