Updated to make duration optional
Merge pull request #20 from adaptlearning/issue/19

Updated to make duration optional