Rename some methods name, and make File class. Now OutFile and MainFile

inherit from File (lots of identical methods) Now it is little cleaner.