added clean function, to remove break-lines, added console.log when output file isn't set