Fleshed out basic command line functionality