Fixes for gitignore, and added some more documentation.