Adding static initializers
Removed initializers.  Updated swift code for OS X