small fixes

+ added null pointer checks;
+ renamed member file to stream in aie_ArcFile
+ fixed braces