docstring typo and integer type consistency