Clean up docstrings
Bug fix: use correct indexing for insertions