removed duplicate code from the wg_attach*() functions
updated email address
added support for logging record metadata (Note: the format change is currently backward compatible but not forward compatible)