Optimized some code via Youssef's version. Added Intermediate Frequency support (may require new firmware and hackrf-tools)