Serial command and outmode mode changes

Working on raw/integrated output, adding serial commands