Minor changes to the script, added swift example