Add code to kick off sys.doc command and some post handling