Added useful functions and File class