+ some fixes and changes to d.ts
+ added a pullrequest which could be useful