Extracted some buffer names to variables

The buffers in question are doc, src and macroexpansion. I've also made the quit command aware of them.