wadindex: issue #136; added --logfile option