Added RAW binary format (4byte big-endiand data size + data )
Added version info. Tweaked how write to output. Added code to control when it's the mai nscript or not