Added assets and fixed file paths in the code
Fixed stream closing