Researchers have discovered doodles in the margins of a medieval religious text