Modified RegEx Scanner so it can read input from a stream
implemented synchronize methods
bigger buffer
fixed input buffering