Tweaked API and some code in preparation for implementation of calibration tools and better implementation of RxPortToFile.