Fixing some type specs and old API usage
Merge pull request #16 from Feuerlabs/tb-cleanup-typespecs

Fixing some type specs and old API usage