Remove indentation on else block
Style fix
Add missing documentation on types