Error messages

Error messegases are now printed out with red text.