make cfold exit properly
add license to the cfold example