Added automatic frequency validation. Moved color windows to separate file.