The diagrams in this thread helped me a ton yesterday at Home Depot. I was able to measure my 2x2s and cut them right in the store. I took the top rail to the plumbing isle and had them cut it with the pipe cutters (nice clean cut).
This morning I stained it and painted the rail. The only thing I did different is I used chain to go from the hinge to the rail.
Last night was my first night in it and all went well..... as they say " cool beans"