Added unique, working on tail calls to stop stack explode
Cleaning up code
Temp fix for long running dcontt computations.
V0.5, work on #7 fixes #9 and fixes #10 and fixes #8