Added a few inout output file options and a directiory check to generateData and kalman