cleanup documentation for rewrite_pwd()