Fixed compiler errors for new Swift syntax reported by @masonvscode.
Thanks for feedback!
Closes #1