updated reformatting function to use sicUnrotated files or sic files if sicUnrotated files dont exist