minor documentation changes and moved d.ts to src
Merge branch 'naive-ts'