First Working Version

Generates playlist but hangs, code needs cleanup, events aren’t correct