split project in a library and a client, issue #58