add_preamble. done.
Started to change bits_to_sample
bits_to_samples. done
detect_energy_offset. done