added copyright headers.
added a few codes to print logs for histograms into HistoLog.txt.