Improved command line interface.
Boundary cases now produce answers as well.