move to singleton patter for modem core, logic cleanup around hardware start/shutdown, better debug handling