added examples and small fixes