Added examples and some minor changes