added file length testing to pointing and demodulation read functions in rt