BUG: IRR was returning nan instead of valid negative answers; and returning array instead of float