Refactoring.
Added examples.