A three essays dissertation on agricultural and environmental microeconomics