add support for latest log format

the latest version was rolled out on October 21st 2103, so we keep
retrocompatibility with previous format
unit tests updated to test both versions
fix wrong type
update readme, fix code style