he walked in the first ways of his father David - He imitated the piety of his great ancestor in the early part of his reign before he made those unhappy lapses which dishonored his character.
and sought not unto Baalim - a term used for idols generally in contradistinction to the Lord God of his father.