Prevent negative values of read depth, read length etc.

Fixes #45.