Add a read file class

There should be enough comments for you to understand