added examples
added tests