Made the test data binary instead of ascii, and fixed the various errors that cropped up as a result