fix clang warning about implicit type change
rearrange RxPortToFile to handle command line argument parsing and actually writing to file; WIP but it still does read data as before