The headteacher of a Catholic primary school, which received a glowing inspection, has thanked pupils, parents and staff.