Initial switch to taskthread
Make unit tests pass
Update documentation and version
Fix a bunch of pep8 errors