Added .sh submittion script generator and functional .m script