[ac Added more content to pam generation and demodulation