Added gitignore
Moved 'go' to the function