doctests for pug/miner