Initial code commit

Working code on all platforms and also an example app for iOS.