added trange documentation

Fixes #547