added comments and variable naming convention