[tbs_plugins/sma_adc] Added Bob's various changes to sma_adc plugin.