"I know he isn't a good guy, but maybe I could change him."
90% of girls have said/thought this — and the other 10% are lying.
Movies and music have influenced girls growing up to believe that they can 'save' the bad boys. They get under the spell that they can turn the bad guys to good guys (i.e. "A Walk To Remember"). Most rom-com movies show how the good girl drastically changes the boy that they love.
Piece of advice: If your relationship is based on completely changing who that person is... it might not be the right relationship.
Help him change but don't be the reason behind the change. For instance, if your boyfriend says he wants to be a better person then help him and encourage him to stay on the right track.
But, if your boyfriend says he knows you would be happier if he would change, then step back and love him for who he is. Bring out his best qualities and help with his less-great qualities.
Try to influence any lifestyle changes he wants to make, but having him change for you will leave room for trouble down the road.
He will change if he wants too.
You can't force people to change.
If you want your boyfriend to change, he is going to have to want it.