debugging and added integration tests. Started a unit test file... not sure that will stick around.