Added example and changes to library.