i can't understand what the difficulty mean, when you mine, setting this value to high is better?
no, you don't set this.
it's how hard (difficult) it will be to get coins. it gets harder the more other people mine and easier when less other people are mining.