tidied up flex scanner. tightened it up.