Implemented ReferenceIntegrity feature
Reverted file permissions
Updated doc
Merge pull request #180 from evertharmeling/reference_integrity

Implemented ReferenceIntegrity feature