Fix missing_doc warning
Use indexing; fix deprecation warnings