Fixed duplicate shares on vardiff difficulty update. Added more comments.