loca table fixes and added RLE encoding

I understand why you picked LOG but anyone else (or either of use in the future) will assume it is related to logging.

Kindly pick a more meaningful name.