added file reader
minor changes