Fixed dendropy error that sometimes arose when when pulling down synth tree (didn't really fix; just set to try a few times to overcome stochastic server error)
Functions that call os.chdir inside are now wrapped with a function that returns to starting dir upon crash (improved usability as api)
Cleaned up and fixed sundry bugs in unit testing framework
Cleaned up typos, spelling errors, and removed unused imports as I encountered them