Refactoring towards more modular code.
Added basic sequencer and a default sequence.