fix swift compiler errors
removed uneeded code from comments on blog