fixed examples and some minor changes