H-K terminates with some result
Massive cleanup and refactoring. Works on sample input, but times out on Spotify servers.