The most effective key to rules is establishing a relationship with your students. And having good procedures. Procedures should be taught in the first 2 weeks of class, and reinforced.
Other techniques I do to insure management is to model the skill or behavior.