Update wtd.php

miner looks change and clean up code