Fixed various issues in interop
Added comments on generating security files