Added documentation to important module.js methods