Added structural/functional switch to volume viewer example. Closes #11.