Document foreign keys. Closes #207.