Add methods Init GetData and Clear to Stream class. Remove some gcc warnings.