added readme and small check to avoid delegate method to be called if delegate is nil