document maxDepth option

See title.
Fixes #6 and replaces PR #9.