fixed bug in decoding of hex code channel mask
set useful default value of per-channel baseline trim
added script to set spadic thresholds from the command line