simplified the `duration` option handling
documentation for `duration` option
0.1.5