Completed data structure for tones, frequencies and amplitudes. Add some documentation and source headers.