added basic flush method
readme updated