clean up and added out filename convention per assignment instructions