refactoring

Separated the main program and the CTMK-API to two separate solutions so
that the library can be added to other projects