updated to comments/explanation for remove-item[] function