Added IO stream framework.
Updated BinaryStream class.