Fix for issue #16
Cleaning up the examples; digest key bug fixed