Gate reading

Gate reader class written up. It uses the C++ Regex header as described
in chapter 23, rather than reading a file token by token. Still need to
test and debug.