Parser seems to be working OK now. Split into 2 files. Need to print characters to stdout when search fails...