Convert napa to Swift

Fixes #22