add comments to mathfns.js sample files