Added input keyword to phi in valve base class.

This is for #205.
Added documentation.

This is for #205.