Merge pull request #7 from sselph/master

Switch from atomic.Value to sync.RWMutex for backward compatibility