new examples and bug fixes