Added eof, added eof example usage, made fout able to write real values.