Rename flush to commit.
Added missing module.
Refactored adjacencies.
Merge pull request #28 from adurieux/staging

Refactored adjacencies.