Added examples and more tests.