added chordy score, fixed broken tests, removed accidental globals and crufty comments