public Boolean readBit() throws IOException{
		if(buffer==-1)
			return null;
		
		if(bufferFilled==0){
			buffer = in.read();
			if(buffer==-1)
				return null;
			bufferFilled = 7;
		}
		else
			bufferFilled--;
		
		boolean ret = (buffer&128)>0;
		buffer<<=1;
		return ret;
	}