Added tests, added tox.ini, improved documentation, and better support
for python 3.