Added seperate config file and implemented rx flowcontrol