RelativeDirectory documentation and key_def fixes