added a working Command Line Interface