Refactor dir content sorting so as to fully rely on defer
Use defer to decrement the WaitGroup

Closes #2
Simplifiy code reading responses by closing channel and then using range

Closes #3