implemented logging
json strings are now escaped in HistoryPointJson
added method to LogLocal to write header to new files