Documented code according to golint

Also removed unused const WaitStarSec and others (see `funcs.go`)