Replace an atom with a variable

I assume what was meant was _X and not _x
Get generated docs out of the repo

Remove the generated docs and make sure .gitignore knows about this for
the future
docs and reformatting

More documentation and some code reformatting to keep emacs happy.