Refactor readdir()
Refactor readdir() in client and daemon:
Streamline it with the rest of the code
Add comments
Remove exception throwing from client into application