Made changes to parent process, added comments, removed some code from parent, fixed up some comments.