Added dt as input, changed t and dt to doubles so output files are correctly named