Fixed the issue #1
It seems that just checking if the file is good to read is not enough (std::ifstream::good). This function reads one extra line. I did a hard check with the number of samples and solved the problem.
Showing with 11 additions and 1 deletion