Add offset and end to reading for range reading

Pretty much explains itself. I needed this for a project i was working on, and it definitely seems to work.