* add examples and tests for libcs