New validation scheme
Foreign key validation fixed
Merge pull request #46 from CIPowell/master

1.4e - Fixes from debugging run