Comments added, and identifiers renamed in accordance with Google Style Guide for R. Updated .gitignore.