module documentation

Tests for magic.py.

Class TestMagic Tests for the functions in magic.py.