1. Fixed a typo in chord quality detection (haldDim -> halfDim)
2. Changed logic to consider diminished chords dominant regardless of absence of minor 7th