Fix bug in output code when savetxt is unavailable
Use output directory for output files
Write unit tests for reading ASCII catalogs.  And fix some bugs it found.
Add unit tests of reading fits catalog