-Fixed a variety of bugs in handling of PRT files.