use more accurate variable names

remove user input for file names
use more accurate method name
add testing for exercise 5