Cleanup Glavin code :P
Add error cecking for wait
Merge branch 'redirection' of https://github.com/Glavin001/MrShell into redirection