Original: Every morning after breakfast there was a time of Bible reading and prayer, and every child was given a Bible upon leaving the orphanage.
Simplified: Every morning after breakfast there was a time of Bible reading and prayer. Every child was given a Bible when they left the orphanage.