Implemented generator of swift code

Please, correct the header with appropriate information about the author and copy