Various fixes to update the package and make it more robust
Merge pull request #11 from mizzao/master

Package updates and general robustness improvements