removed comments, debug print comments, and the now unused 'getValuePair' function