Decoder source code for http://www.logfordata.net/ (see also https://github.com/davidonet/LogForData2013)