Added some comments and deleted some  excess code.
Fixed an unequip equipment bug.