updated generate metadata file and added sh script file