Fixed FileReader and added new read/write method