make doc output to sdout or in a designated file
remove prepend actions
allow to generate doc from stdin