Minor fixes to examples and updated docs