Correct whitespace problem.
Have get_file_contents and write_file handle newlines.
Add templates, formatters, test script for perl.