fixed math-probs.html and added comments

added comments to rendergraph.js and fixed an error in math-probs.html