Added functions to read and write STPLP frames (still not tested)