removed counter, modified path of writeLines(log.txt)
revised explanation of how to run simulations