Update print.c

Cleaned unneeded variables, added reset for line_count