Improves file naming system, takes out unnecessary sys.exit().