Added checking if a file is executable and did some minor refactoring.
This includes my test executable file that I made, you may have to go in and chmod the file and make sure you have execution rights for it when running it
Another thing to be aware of is that you will need to change char *teststr to be the full directory of where you have xshell saved on your computer