initial implementation complete; +unit test
+unit tests
-comments
renaming file
simplifying algo greatly