If you want a better ending in the game, then you will have to make better choices in the game. This means that you will have to fulfill all the missions and side quests given. Also, make sure to give characters what they are asking for.