Fixed strings and added sample code for Swift.