loca table fixes and added RLE encoding

debug ?