modified authenticator interface
updated examples for the new interface
copying information: added Apache 2.0 License