added missing main entry point and updated doc to reflect usage