Added macro for raising fatal errors and fixed all error messages.