lib: rewrite chunk reader, README: add build/install/test instructions