Added documentation, and improved .gitignore.