Add feof()
add comments about errors
Check of bad length of  the array was added