added help and endpoint support to commandline