cleanout old commented code. redesign data structure of string states, needs testing