Offset of 131 with the histogram bell around 1000 sounds ok. To set gain on a qhy, I normally expose it for 5 sec to full daylight to saturate the sensor and adjust gain so the max value is close to 65K but not over.
There is a document somewhere that explains it in detail but I forget where it is. Might be
this one.