Fixed frac rms2 norm, made code look nicer.