Merge pull request #19 from christav/master

Refactoring towards more explicit layering
Merge pull request #21 from christav/master

Implemented sequencing layer