Comments and name corrections

Added comments and corrected the names of variables to the appropriate
names