add missing docstring, fix underindent and error message style
Merge pull request #1 from vinitkumar/linting-compliant

add missing docstring, fix underindent and error message style