Fixed text highlighting problem

Also included my own typing simulator... slightly more predictable.