Added prettyPrintPattern
Fixed formatting
Added SequenceMachine