Main code, v1.00

First release, with text-based interface.