Adding more docs and tests. The go version is accurate to many more decimal places than the php version.