Command line mode

Opening new PR to replace #71
@davidfowl @abnanda1