Lots of doc cleanup
Fixed a newly introduced bug in merge on attributes, added internal origin function