Minor typo in readme.
Try to get all output to console by flushing.
Debug print added.