adding tests, and refactorign for ease of testing."
Merge pull request #2 from UT-Austin-FIS/ted_tests

adding tests, and refactoring for ease of testing.
adding some doc strings to the tests.
Merge pull request #3 from UT-Austin-FIS/ted_tests

adding some doc strings to the tests.