int to int32_t and added size check for floats
added stuff into go test and gofmt'ed