Start adding typescript definitions
Complete initial .d.ts file
Finish ts definitions and add tests