xrnet_control function

Control function for xrnet fitting