Cleanup

I added some docs and vim folding. Feel free to do with this as you please ;)

I also changed the creation of the temp file (first commit in the batch). I read the docs for OSX but I don't have this system running so I can't test. But it seems to be compatible.

The folds are kind of a pet-peeve of me. If you prefer not to add this, feel free to reject. I wanted to add them on another branch, but that would have caused merge conflicts. They are a bit wonky on places (like the "linux-install"/"OSX install" folds as they don't properly nest with the code scope. But this is not HTML, and this "overlap" at least causes a clean look when the folds are closed.