Added extending and embedding examples to the documentation