Updating with changes from demo/backbone branch.
Completed manual documentation.
Adding comments to main.js