major refactoring, some tests and a simpler decider interface
added more unit tests and bug fixes
more unit tests + version bump