fix ConnectionInterface
add Doc
add ConnectionMock and it's tests
refactor compilerPasses