Added ability to pass in initial data and to specify external data to be supplied to the parser.