Update

Changes: Bugfixes in filestream.cpp