works NOW with the testdata-10.txt dataset. Still more testing to do.