Lots of jsdocs and spelling fixes.
Merge pull request #1046 from photonstorm/dev

Lots of jsdocs and spelling fixes.