Working on the curl class and refactoring logging