some optimization in psychograph.js and add comment and delete bloat codes