Added documentation of the internal workings of a custom tag

Addresses https://github.com/paularmstrong/swig/issues/543 to some degree