Document purpose of different cases of switch() statement