renamed reader api; corrected schema; more tests