Rewrote parts of cherrydoc to allow basic preprocessing.