removes unused methods.
refactors BigInteger