Add examples and update documentation