Added tests on InteractionMatrix, made slight changes