feat(main): implement from/to range specifier

Fixes #4