The general purposes of the provisions of the code are:
(1) To proscribe conduct that improperly causes or threatens substantial harm to individual or public interest.
(2) To give fair warning to the people of the state in understandable language of the nature of the conduct proscribed and of the sentences authorized upon conviction.
(3) To define clearly the material elements constituting an offense and the accompanying state of mind or criminal intent required for that offense.
(4) To differentiate on reasonable grounds between serious and minor offenses and to establish appropriate disposition for each.
(5) To safeguard conduct that is without fault or legitimate state interest from being condemned as criminal.
(6) To ensure the public safety by deterring the commission of offenses and providing for the opportunity for rehabilitation of those convicted and for their confinement when required in the interests of public protection.