Fix naming mix up. Actually call decoder_indicators
Move checks into their own functions.
Add copyright header and GPLv2 license