Complex sentence: Each attending prisoner lived in his own cell and nearly all were in an education program or learning a trade.
Split into simpler sentences: Each attending prisoner lived in his own cell. Almost every one of the attending prisoners was in an education program or learning a trade.