Add examples from docs and improve docs