Added an example.
Bug fixes.