output: fix the flushbybag feature

(closes #65)
output: add more precision in float/double output

We improve the float/double representation in file by using the
std::setprecision in std::istream. (closes #67).