Add timestamps to unit add/remove & base classes for xml metadata generation

are the parens around the ``set()`` call necessary?