Close #95: replace uses of [] with .at()
Issue #24: fix for newline added at end of dfa|regex files