And fix a small bug in handling of citations in notes, which led to commas at the end of sentences in some cases.