changed the hypot function to not dump precision and resolve some compiler warnings, removed redundant code from the FFL length function.