added documentation and added license.js to the build