r9

Extended wand functionality, added wand upgrade, added debug /g command