added comments to mainObj.js