Separate `designdocs` from main.go. Basic arithmetic for positions. Some error checks. Commands externally configurable.