Tidied up some commands

Also:
- Math.Enum, Math.Mask
- Fix to spawnitem