code is written

still need to test and fix bugs
bug fixes

code now seems ok on testbox.  need to try some different/better test
cases now.
cleaned up linking between files

also added new test file