swift -- updating documentation and comments in script