Remove redundant flush structure
We can rely on node stream to handle flushing
Change: Put the cap parameter in front
Note this is a breaking change from previous version
Update README and bump version