change_index() updated. Doctests fixed.