Fri, 09 Sep 2016 17:57:36 +0300cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Fri, 09 Sep 2016 17:57:36 +0300] rev 1525
cleanup logging example

add comments, rename variables, some rework for algorithm