finishing up comments and deleting unused variables