Converted attributes to Swift types
Stripped unnecessary code

Swift ftw.