Add get index settings API
fix indentation and API signature
Merge get_settings support. Fixes #65. Thanks, Hanno!