Update gitignore
Convert to function
Execute if __main__