Merged #3 and #4
Merge pull request #481 from kontan/three

Merged some fixes in three.d.ts