now , ghwerig was an outcast by reason of his ugliness and his overwhelming greed , and he laboured alone in the depths of the earth , seeking gold and precious gems that he might add to the treasure-hoard which he jealously guarded .