Apply "go fmt" to source
Refactored jumps into their own functions