function comments added, resetModificaiton func in cs.js