Fix nested batches, add examples
Clarify end of batch
Merge pull request #47 from DarthGandalf/batch

Fix nested batches, add examples