git ignore and restoration of main function to default