updated docstring and .gitignore file