Add nopt as a dependency, reconfigure CLI processing. This closes #2