added api methods to tools.js, added commets to updateModule.js