Added classes to manage the output of files