Began unit testing of libpit. Made most of the changes to pit-cli needed to incorporate the new libpit features.