bug fixes; more documentation; refactoring and really basic integration test for c-echo