Updated comments and refactored sum_divisors.

Comments updated to jsdoc convention.
Refactor sum_divisors for readability.