code: def createResults(config,srcfile,section='source',samples=None):
      
      source = ugali.analysis.source.Source()
      source.load(srcfile,section=section)
      loglike = ugali.analysis.loglike.createLoglike(config,source)
  
      results = Results(config,loglike,samples)
  
      if samples is not None:
          results.load_samples(samples)
  
      return results
docs: Create an MCMC instance