Added Create method to File class and fix a small bug