issue #24 code optimization, code formatting for PullDataThread and
AnalyticsDataHelper