Greatly extend documentation.
Add demonstration.