The example takes advantage of the internal pull up resistor of the Arduino board (no need for external pull-up resistor) when connecting a button or reed switch. Debounce library is also used to minimize debounce problems.
For information on installing libraries, see: http://arduino.cc/en/Guide/Libraries