Move more constants to the top of the file
Improve some docs, rename dataDir to pasteDir