fixed a few code smells
fixed wrong key for kamstrup lookup