move main radio code into cpp file