folded into getHistory
combined print hist, and sorted output format for cursive data upload