Added (currently failing) test cases for #111.
add option to add/remove trailing empty lines in the file (EOF). closes #111. closes #112.