Add occurrences() for #239 and occursAt() for #175
add toString()