Add corpus reading code