Added colors (red,green or yellow) to messages depending on if they are sucess messages,
warn messages or error messages.