made blob compression an option rather than a debug symbol
minor refactoring
close -> dispose on steams