Enhanced the flush() method to accept a callback for asynchronous file writing.  Added method comments.  Added new tests.