Added all modules with doctests to test.py.
Moved member initialization into constructor. Closes #31.