ADDED: factoring and testing for primes < 2^53 and JSDOC documentation