See the FAQ. It has lots of examples showing how modes are used.
FAQ: Armed/Disarmed states vs Away/Home modes confusion