changed methods to support BigInteger, added methods