Added toCWString() and updated comments