Separate auxiliary file creation

Move auxiliary file creation to auxfiles.py