Cleaning up Pool variable representation and adding some tests.
Adding SetPair utility class.