What are the purposes of criminal punishment?

1. What are the purposes of criminal punishment?

2.  What is burden of proof in a criminal case ?who must meet this burden of proof?

3. Who has the burden of proof to prove an affirmative defense?  what is the standard for proving affirmative defense?

4. What are indeterminate sentencing laws?