Added doc comment for digits function.
Consistent whitespace in function definitions.
Functions should not use camelCase.