added waveform script
fixed wave script
printing waveform
getting section pos for waveform