First working version

Got rid of anything to do with resting. The tempo, volume and frequency
controls work well. The duration does not since it currently not used in
the frequency playing part of the code