Added simplify. Rewrites sqrt(n) to m*sqrt(f)  where n=m^2*f