Bug fixes with BigInteger and alot of other things