format worker.java and add more comment