Started implementation of InputReader.

Not working. Not everything is implemented yet.