added doc comments. made chunk reader unexported