Attempted to fix error messages

In calculators 4 - 16, NameError was added instead of ValueError.
Messages seem to work.
Merge branch 'ValueError'