You can make sure that your compost remains oxygen rich simply by turning or mixing the pile every week or so, or anytime you notice it becoming odorous. First, choose a location for your compost bin. Place the bin at least 20 feet away from the nearest house. You can choose how much effort to put into maintaining your compost pile. If you are not able or inclined to shred and chop your wastes and to water and turn your pile, your organic matter will still turn into compost it will simply take longer.
Small particles decompose more quickly than large ones.
Keep the pile moist - about like a well wrung sponge. Mix or turn the pile occasionally, especially during warm weather or if you notice that the pile is hot. Mixing will aerate the pile, providing oxygen needed by the more desirable decomposing organisms, and thereby controlling odors. Once every week or two will probably suffice. Most backyard composters have an over-abundance of carbon, so that the process is limited by the nitrogen available in the pile.