Finished simulation 1 code, file outputs properly. In progress: add ability to pass file name to data output function.