Error and Warning messages

Added Error and Warning messages to the c code. These warnings and
errors are mostly to let a user know when there is an issue with a table
read or a inner block iteration is not converging.