Updating some examples and bugs.