added code examples and instructions