File Class refactored for cleaner instantation