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

is this making an assumption that the starting tag is within the first 1024 bytes? Is that safe?