Simplified configuration interface and added support for delegate configuration

Simplified configuration interface and added support for configuration
via an anonymous Comparison<T> delegate