added simple command line interface