Simplify and add comments to new stats system code.
sanctum32: initialized some variables in this commit.