1 row removal

- Resolved Issues with Sorting.
- Resolved Issues with Removing Parent Row.
- Refactored code with more detailed comments.