removed examples, added a unittest2 test suite. some code refactoring too