Cleaning up of the main file
I have:
- Moved the tests in example/test.c to a separate file
 - Renamed test.c to main.c for clarity
 - Renamed the compilation target to swift_* to avoid confusion
 
No real code change, just re-organisation and renaming.
I have:
No real code change, just re-organisation and renaming.