Fixed bug with durations. Unit test updates. Updated version to 1.0.6