removed test function
added distll and nan_interp
minor numerical changes