More clean up, add an example main.  Handle max inflight
update readme