added adaptation field handling and some new functionality regarding discontinuities in PCR and their detection