desolation:
I dont dig the "code ref" style
What would be another option
if (blah) {
blah
}
else if (blah){
blah
}
else {
blah
}
it really doesn't matter; it doesn't look terrible and people use it.
You could replace the Serial.prints with this: http://arduino.cc/forum/index.php/topic,120440.0.html