bring back trim_trailing_whitespace and insert_final_newline support
end_of_line support
possible NPE fix
Merge pull request #37 from denofevil/newline-trim-support

bring back trim_trailing_whitespace and insert_final_newline support