more or less finished qam_demod. somehow, the output buffer becomes shorter than bits_per_symbol and so no symbols can be decoded...