test-ksh and base_pairs now work
filenames fixed
most stuff works