remove extraneous examples, remove tests for api and replace with unit test for library itself, fix examples