I don't really have a document but my comment here explains a bit more. Also the source is available if you want to check.