Think I found our fg bug. Will now go to implement other functions.
Major cleanup and update. Everything for single commands appears to be working.
Output is failing on auto test, but we will work through that ASAP. Probably should work on advanced controls for pipelined commands. Also possibly implement handlers for CTRL-C/CTRL-Z so that our shell will not suspend/kill itself.