minor formatting cleanup
unit test for CWErrorSet()
unit test for CWErrorSetV()
remove completed TODO's