Minor changes to stats commands.

Mostly changes to make the game more robust. Some minor fixes