added boost filesystem for logging to the desired directory
added prefix flag for the root log directory
made agent into a class, each thread owns its own agent