Finished read support for end.cpa file