Merge pull request #25 from bryantrobbins/master

Updates to support MapReduce clients
Fix the sample
Merge pull request #26 from mibrahim/master

Fix the sample
Add maxNumberOfLines
Pass maxNumberOfLines, remove the extra created flags. Pass the same instance of exitFlag
Dont create a new exitFlag in consumerResult
Merge pull request #27 from mibrahim/master

Dont create a new exitFlag
Adding OutputWriter interface; incorporating into ChainConsumer