Update loop docs with full examples