Saving copy. Cleaned up code and added one more input file