Gun bugfix

Included code reversing in NECencode to correctly communicate device and
command numbers. Now works and the gun is updated.