Added reverse_file() function with error handling

Doesn't work yet, but chastides the user for incorrect files.