added file type checking and more output to line_count.py