Lets try this again.
Use enum to relay result of commands to main loop.
Allow prompt to be assigned.
Add prompt opt.
Add error messages and verbose flag.
Added some spacing (todo: factor out parts of main).