Code takes the fun out of everything. I installed a pot-bellied stove in a guest house on me dad's farm once. It was a corner install and I ripped up the 3/4" pine floors and put down some fireproof mesh (like fire hose, actually) that I had and arkansas flagstone on the floor and walls, about 25'sq. on three sides. I had one 120 angle going from the back of the stove then a through-wall flange kit for the back wall of the house and obviously then a 90 degree elbow. I then just ran stovepipe up the side of the house and used another through-wall flange kit through the eve of the house, four feet above the roofline and capped it off. Cost about $300 total and haven't had a fire since I did it in 1991

If I had it to do over again, I would have gone up a couple of more feet with the damper part of the pipe coming out of the back of the stove, because it does tend to back the stove up (smoke) pretty severely with the slightest adjustment.
Sorry this wasn't really helpful, but I was pretty proud of that job when I finished it, since I lived there with my g/f one winter and had promised heat