Created getByteRange function for logs and log pages, removed lastNBytes function