Adds tests, docs, and comments in Cannon.js