replaced "start byte" and "end byte" with "offset" and "length" for
all internal code referring to file pieces to reduce ambiguity.

This should fix bugs 1028 and 1029.