fix error code in README and the example
allow zero duration
version bump