added examples and more code samples