Fixed some deprecation warnings and defined a File alias in order to minimise imports.