Now creates output directory if it doesn't exist, because java won't create it automatically.
Surpressed unnecessary output.