got basic functionality of file reading working