Fixed some bugs. Still an issue with transmission sometimes not completing
Merge pull request #1 from pyb/master

Fixed some bugs. Still an issue with transmission sometimes not completi...