added some documentation references
switched example app to delayed initialization (factory pattern)