Anakin did start out as a goor person, his own mother said it best, he gave with no thought of himself.
That was a blip of his time. The selfish, inflated ego, violent, disrespectful Anakin of AOTC was formed over years, and if what you say was true:
But by the time AOTC Palpatine had ten years to work on him and it showed
That means he--despite being under the constant training / watch of Kenobi (and the entire Jedi culture), had a natural leaning toward all of the traits lested above. That is the real Anakin, and that is not what anyone would describe as a good man. Everyone other than Anakin were good, and that was easy to see in AOTC.
but he was able to redeem himself in the end.
...all for selfish reasons. Not once before learning he had a son, did he do anything to stop Palpatine. Palpatine filled his head with near God-like dreams, and Anakin was aware of his place in the Jedi prophecy, so he should have acted on that long before becoming misty-screened about his long-lost son.
Just as he was with his behavior about saving Padme, Vader/Anakin only operated for selfish reasons.