Moved file io code to FileStuf.py and cleaned up some stuff.