Remove get_cursor() function from tests
Simplify checkfile() function and modify while loop
Exit program when there is no input files
Update gitignore