Added comments to methods in comm.js