Adjusted how the interface works a bit and created an interface for read-only access to max_val.

Signed-off-by: Paul G <p.ganssle@gmail.com>