initial work on kamstrup decoder