Fixed error messages.
TODO for proper rounding of figures.