Switch isFinite to isInfinite and improve documentation