rename some functions
get rid of flawed 'reporting' logic
more descriptive error messages
use size_t consistently
better code for chunkcheck
better code for checkread