massive refactoring and simplification was done. all unit tests (except
for one) are passing plus a lot more new unit tests are now passing.
there are currently 2 knows funky scenarios not fully handled, plus
there could me more edge cases with the percent, which was just
implemented.