Text files should end with a newline character
fix unused variables and paramaters