Made scripts executable, added some debugging.