Add clarity to EOF. Add %ld for longs in C