Set up basis for logging and cleaned up all warnings from compliation