issue #7 - implement safe-thread on stats.go
issue #7 - refactored stats.go
Merge pull request #12 from edionmelarosa/master

issue #7 - implement safe-thread on stats.go