Added .gitignore, generated docs, fixed up formatting.