interface refactored
engine added
flush method added into the interface
connect() command
smooth refactoring