Complex sentence: Gray completed Clinton Grammar School from about 1823 to 1825, in those years reading many books from the nearby library at Hamilton College.
Split into simpler sentences: Gray completed Clinton Grammar School from about 1823 to 1825. During this time he read many books from the nearby library at Hamilton College.