Created main file; checks if it has root privileges