Fixed bug. Wasn't closing certain pipes in children, causing program to hang. Works now. Now just need to improve parser.