implemented unit tests, implemented whitepaper. g2g