code for deviding ERF file to bin, merge script and processing code