Handshake Stability

Fixed getBytes in BigInteger thanks to a article on CodeProject
And more changes