remove memory leaks, add date custom formatting to Logging class
Merge remote-tracking branch 'origin/master'