Renamed FilenameWithContents to just File.

It is shorter to write this.
Extracted the creation of translation unit into an own function.