added option to set max number of examples 

Added option to set max number of examples for the parser to read.