Corrected bugs in file read, character values and match filter.