add fileExists and createFile funcs, made static
now checks if main files exists and create if not