fixed any bugs, removed unused code, added unit test. 84 tests covering 87.6%.
also added coverage for Model Testing. Full Coverage obtained with Look-Ahead Tester.