Plugged memory leak in changeset destructor. Updated commentary. Reformatting of a few integrity checks for readability.