Various miner incentives

This incorporates changes suggested by #4.