Changed CLI to use unbuffered output

Unbuffered output allows other programs to capture progress messages