Added comments and deleted unused variables.