Tests

Adds unit tests, example project builds a static library and added swift example project.