changes parameters in preprocess functions to match api documentation
edits function comments
changes $variables to $vars
Merge pull request #30 from rabellamy/preprocess-parameters

changes parameters in preprocess functions to match api documentation