Adding sys.exit call for unrecognized commands
adding docstring and model for clearcache