Updated and fixed examples and documentation