Added squared-error computation to mlutils.  Also added comments.