Add comments to Frenquency.dart, and change some return types.