Updates:

Changes: mainwindow.cpp -> some fixes
filestream.cpp -> new functions
filestream.h -> new functions