minor sgs2c bugfixes and documentation changes