Added GUI for post-detector offset and gain. Previously these were carried