Also I read theres a way to get the Stormcloaks & Imperials to sign a peace treaty so you dont have to choose a side ?
It's the quest Season Unending, part of the main storyline. If you have not joined a side in the war, or if you have but your side only controls seven holds (or less), once you progress the main quest to a certain point it will be impossible to continue with it unless you either finish the civil war questline first OR negotiate a ceasefire while you deal with the dragon problem.
The ceasefire is only possible as part of the main quest and can only be negotiated at one specific point in that story. So if you aren't playing the main quest, you will never have the option. Also it's not a peace treaty, it's a ceasefire that only lasts until you finish the main quest. Once you do that, the ceasefire is over. You cannot resolve the civil war in Skyrim without picking a side and playing through til you control the entire province. If you're satisfied with just the ceasefire I guess you could do the main quest up through Season Unending and then just never finish it.
Edit: and you don't *have* to choose a side in the war anyway, you can completely ignore it. It will just remain in a permanent stalemate, with the Legion controlling the west and the Stormcloaks controlling the east and both Tullius and Ulfric trying to decide what to do about Whiterun.