Minor changes to the scripts to allow for non binary and different length files