public static int getIntegerSignedValue(String binaryString, int bitNumber){
		int x = 0;
		binaryString = extendToMaxBitsSigned(binaryString, bitNumber);
		boolean isNegative = (binaryString.length() == bitNumber && binaryString.charAt(0) == '1') ? true : false;
		if(isNegative){
			for(int i = 0; i < 32 - bitNumber; i++){
				x <<= 1;
				x |= 1;
			}
		}
		for(int i = 0; i < bitNumber; i++){
			x <<= 1;
			x |= (binaryString.charAt(i) == '1') ? 1 : 0;
		}
		return x;
	}