update .gitignore, rewrite docs

.gitignore has been updated so that Vim swapfiles are now ignored.

The .odt files in the `doc/` subdirectory have been rewritten as markdown files.