Chord theory epic: functional harmony, secondary dominants, substitutions and diminished 7ths