Update examples, fixing bugs found in review.