Fix a bunch of documentation errors; remove generated files from repo.
Fix typos.
Tidy up Python indentation.
Remove editor backup files.
More documentation fixes.