helpers commented and cleaned
Merges sorted