Added get/set/has/remove methods to Document. add method became deprecated
Changed Document->add() calls to set() because it is deprecated