Made some changes, squashed a bug or two, made line clearing easier to extend in the future