Revised documentation, corrected nonexistant variable, made rewrite rule more precise