Updated example.

This is for #205.
Added test model for valve and revised valve code.

This is for #205.
Corrected malformed html

This is for #205
Added unit test for valve for #205.