changed unit of time axis to sec., removed double call of
nix_file.close, removed whitespaces