Fix up some URLs and incorrect code in examples