added file integrity feature. wrote demo setup. UNTESTED