Fixed bugs with hint file read + write
Fixed bug with offsets in hints