Unit test code coverage for list and refactored list_remove() method.
Minor fixes in cwatch.h