Generates new doc