simplify formatNumber
fixed issues in Intervalometer