To speed up the compost, it's is a good thing to reduce items put in to the smallest pieces possible.
To get it to heat to a hot temp, I think layering is best. Make the base a layer of soil, then layer of green, brown, another thin layer of soil, and so on. A light sprinkling of a 10-10-10 granular fertilizer between 6 layers or so can help speed the process. Branches and sticks are fine; but they need to be reduced as much as possible, the best way is a shredder.
Green items consist of weeds and do NOT put weed seed heads in there in case the pile doesn't get hot enough, garden clippings, and don't include clippings or leaves with possible diseases, a variety of vegetable skins and kitchen wastes, not citrus, and grass clippings. You need to be very careful with grass clippings; too thick a layer and you end up with that ammonia smell.
Brown includes leaves, shredded and chipped branches, newspaper, cardboard boxes as long as the backside of the box is grey, used paper towels, as long as they weren't used to clean up grease and they are plain white, the inside cardboard tubes of paper towels and toilet paper. You can also use shredded all cotton clothes and even old all wool carpet.
Baked tortilla chips, coffee grounds, used tea bags and bread can also be put in a compost pile, along with eggshells, but be sure to crush the eggshells very finely. I've used compost from my pile that had "cooked" for 6 months and found eggshells essentially intact!
What not to put in a compost pile? As mentioned, weeds with seeds, diseased plants, dog and cat poop, chicken, horse, sheep and rabbit is ok, no kind of grease or meat products, no dairy products, no citrus rinds because they take so long to compost, no shiny paper, no polyester materials.
I usually put over ripe tomatoes in mine, so every year I have tomato seedlings growing in it. I've heard from other gardeners who have hadgourds, tomatoes potatoes and even pumpkins growing out of their compost beds and bins. What better place to grow?