Added examples and updated code