Add getter for outputdir
Add transaction writing to Spark driver