Added commands for debugging, added a new spell.

Many many bugfixes to the magic system