Added keypair and network related things
Added method for writing files
Added test for Swift
Merging