updated rate limiting sleep and output of log.txt