fixed #5
added asserts to the majority of classes in package mf.stream.