Frequency detection algorithm updated using Harmonic Product Spectrum.
Data allocation time for determining frequency extended to roughly
250ms. Minor formating changes.