add comments and delete some unused variables