Refactors SequenceGenerator. Implements a very basic and incomplete REPL