fixed issue with copying offsets to the wrong location. updated examples so it's easier to verify the arrays are read correctly.