Log 404 and other errors

- new read function to files class to read a files contents