Call tdInit on module load.
Also tdClose on process exit.
Merge pull request #34 from kmpm/init

Possible fix for tdInit
Update .jshintrc
Merge remote-tracking branch 'origin/master'