Fixed Grep error case, clean up, comment, func

TODO: Handle the grep case correctly!!

This version of the code doesn't spawn child proccess that turn into zombies.
This version also prints the expected answers without errors.