finished refactoring code that generates info files

forgot to add this file.