adding some homemade test data, AND tested it successfully
a bit of function cleanup for my file inversion