Updated examples to work with the latest code.