PRT file format fixes

-Fixed some incorrect assumptions about PRT files:
* Now using stored header sizes (since newer PRT versions might add fields)
* Now not assuming channels are stored contiguously in memory (using 'offset' value instead)