Go fmt.
Update license, and go fmt.
Move stathat call out to a helper.