two minor edits
a couple better variable names, overhauling glitch selection