Documented the core stuff and renamed base.js to prototype.js.