fixed code and last segment pointer
Merge branch 'master' of https://github.com/gik0geck0/ATSC_Waveform_Generator