Naming fix in outputSGP and update of SGPstateData