added unset method to ActiveDocument and bug fixes