He always thought a lot of himself and perhaps by this stage his view of his own importance he saw himself as the natural successor to Hipparchus and Ptolemy a far more important person than a King had rather turned his head

Please fix the punctuation.
He always thought a lot of himself and perhaps by this stage his view of his own importance (he saw himself as the natural successor to Hipparchus and Ptolemy , a far more important person than a King) had rather turned his head.