Error messages

Added better noted error messages to better locate and identify errors