Fixed indentation/spacing, minor textual changes

Made spacing consistent throughout entire script, converted multi-space
indents to tabs, removed unnecessary tabs and spaces from the ends of
lines, made very minor (spelling, grammar, capitalization) changes to
some comments, changed Xcode link (removed unnecessary Google redirect).