adding query language unit tests, testing ptr_bags, checkpoints, and interruption
adding some comments and changes suggested during review