contextmanage and new function to_index_array added
gitignore updated