Add basic main() loop thru modes, and stub implementations of functions