Added implicit print flush (closes #38)