Minor library changes, fixed thread shutdown bug
Merge pull request #6 from palarson/jb

Minor library changes, fixed thread shutdown bug