fix bug using int for millis, improved Console output