removed output files that don't need to be versioned.
simplified code which creates the data directory if it doesn't exist.