write measurements and config file to timestamped directory in output folder