changed updateCounter logic a bit, put threadsleep/size, corrected
localtime updates