added chord thing (doesn't do anything yet), simplified freqency maths