centralized the logging in the backend and color coded error and fatal messages. added level sensitive log functions to the frontend.