added support to get Sbar matrix in getS, filled-in update rules for x and xhat in solveGrouSparse variant