Minor changes and adaption of speckle_exe.m