Attempted to reduce chaining in the remove method. Comments were also added to the remove method.