Added file_translate method.
Some cosmetic fixes to the tests.
Added file_read method.