Added transaction handling to Jet, and corrected some typos

Replaces my old pull request (much simpler now).