added script-side sgs_Stat, improved the situation on docs