Record more metadata, make instance name configurable.
Update docs with session key settings.