added file reader, added documentation