Incorporated command line interface code and made changes to the readme accordingly