Added rerun supporn to gen_docs.
Massive documentation overhaul.