Fixed up brackets, some errors.
Fixed up allocation issues, read exec() manpage more carefully and
realized that it was overwriting the shell image, and so now I'm forking
every time.