Updated documentation

Updated documentation and refactored variable names based on pull
request feedback