reformatted code.  added request method and path as parameters.  aded new method CLI for when run on the command line