Replaced all instances of finite() with isfinite(), for #84