Ran the script through go fmt and adjusted some variable names to follow better go coding conventions