docs and variable renaming