 		signalError();
 		return;
 	}
-	
+		
 	Serial.println(F("Success!"));
 	Serial.flush();
 }
 
 
+/// Arduino loop method.
+///
 void loop() {
 	// Get the current time for this loop iteration.
 	const unsigned long currentTime = millis();

	} else if (status == MotionSensor::Idle) {
		Serial.println(F("Sensor is in idle state."));
		Serial.flush();
		ledController.setState(LEDController::Green, LEDController::FlashVerySlow);
		logicState = IdleState; // Ready to observe.
	} else if (status == MotionSensor::Alarm) {
		Serial.println(F("Sensor alarm."));

MotionSensor motionSensor;


/// A list of voice sample file names
const char* const voiceSampleList[] = {
	"v0.snd",
	"v1.snd",
	"v2.snd",
	"v3.snd",
	"v4.snd",
	"v5.snd" };

/// The number of voice samples
const int voiceSampleCount = 6;

/// The next voice sample to play.
/// They play in a loop.
int nextVoiceSampleIndex = 0;

/// Flag if we had an alarm.
/// The LED will flash red, after an alarm was played.
bool alarmPlayed = false;


/// Arduino setup method.
///
void setup() {
	// Set the initial state.
	logicState = WaitForSensor;
