Implemented generator of swift code

Copyright also, I think