fix read_to_str and read_to_end
update readme