add --skip-garbage option to doc script