Added fflush to stdout function
Merge pull request #11 from davepeake/fflush_fix

Added fflush to stdout function