added documentation and updated .gitignore