Updates for compatibility with latest version of Swift

 - Declare properties and functions private wherever possible
 - Remove @ from final; it’s a declaration modifier now